﻿using BootstrapBlazor.Components;
using BPM.Web.Shared.Data;
using BPM.Web.Shared.Dependencies;
namespace BPM.Web.Shared.Service;

[Scoped(typeof(ISysVisLogService))]
public class SysVisLogService : BaseService, ISysVisLogService
{
    private readonly IVisLogClient _visLogClient;
    public SysVisLogService(IVisLogClient visLogClient, ToastService toast) : base(toast)
        => _visLogClient = visLogClient;

    public Task<QueryData<VisLogOutput>> PageAsync(VisLogPageInput input)
        => QueryAsync(_visLogClient.PageAsync(input));

    public Task<bool> DeleteAsync()
        => ExecuteAsync(_visLogClient.DeleteAsync());
}

